/*
 * @Descripttion: 
 * @version: 
 * @Author: Jianshu Shi
 * @Date: 2023-01-14 17:17:51
 * @LastEditors: Jianshu Shi
 * @LastEditTime: 2023-01-14 18:41:54
 */
import { sum } from './math'

console.log('Welcome! Here is main.js')
sum(1, 2, 3)

document.querySelector('#btn').onclick = function () {
    // import 动态引入，webpack 遇到动态引入的文件，会对其进行代码分割（拆分成单独的模块），在需要的时候自动加载
    import('./count').then(res => {
        console.log('Module loading success!', res);
        res.count(9,6)
    }).catch(err => {
        console.log('Module loading failed!', err);
    })
}
